package list_;

import java.util.LinkedList;

/**
 * @description:
 * @Author yyp
 * @time
 */
public class LinkedListCURD {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        System.out.println(list);

        list.remove();
        System.out.println(list);
        list.remove(2);
        System.out.println(list);

        list.set(1,10);
        System.out.println(list);

        System.out.println(list.get(2));


    }
}
